package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

public interface ProductCategoryService {
    PageVO<ProductCategoryTreeNodeVO> categoryTree(String pageNum, String pageSize);
    //获取父级的分类信息
    List<ProductCategoryTreeNodeVO> getParentCategoryTree();
    //添加分类
    void add(ProductCategoryVO productCategoryTreeNodeVO) throws BusinessException;
    //编辑分类
    ProductCategoryVO edit(Long id);
    //修改分类
    void update(Long id,ProductCategoryVO productCategoryVO) throws BusinessException;
    //删除分类信息
    void delete(Long id) throws BusinessException;
}
